import 'package:flutter/material.dart';

import '../model/LoginUserBean.dart';
import '../utils/Storage.dart';

class AppProvider with ChangeNotifier {
  late LoginUserBean? _loginUserBean;

  AppProvider() {
    _loginUserBean = Storage.getLoginUser() as LoginUserBean?;
  }

  LoginUserBean? get loginUserBean => _loginUserBean;

  void setLoginUser(LoginUserBean loginUserBean) {
    _loginUserBean = loginUserBean;
    notifyListeners();
  }
}
